package com.gsdxsys.dao.impl;

import java.sql.DriverManager;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class DbUtils {
	public static Connection createConn() {
		Connection conn = null;
		String url ="jdbc:mysql://localhost:3306/adminid";
		String uid = "root";
		String pwd = "";
		String clsname="com.mysql.jdbc.Driver";
		try {
			Class.forName(clsname);
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		try {
			conn=DriverManager.getConnection(url,uid,pwd);
	}catch(SQLException e) {
		e.printStackTrace();
	}
		return conn;
}
}
